<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">任务类型(多个逗号隔开):</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control " rows="3" name="row[title]"
                                cols="50">{$row['task_type']}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">内容:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control " rows="5" name="row[content]"
                                cols="50">{$row['content']}</textarea>
        </div>
    </div>
    
    
   
    
    <!-- <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">任务类型:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-question_id" data-rule="required" class="form-control"  name="row[type]">
                <option value="2" {in name="2" value="$row.type|htmlentities"}selected{/in}>自行领取任务</option>
                <option value="1" {in name="1" value="$row.type|htmlentities"}selected{/in}>系统分发任务</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">选择指定用户:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-question_id" class="form-control"  name="row[user_id]">
                <option value="" >请选择</option>
                {foreach name="user_list" item="vo"}
                <option value="{$vo.id}" {in name="vo.id" value="$row.user_id|htmlentities"}selected{/in}>{$vo.nickname}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">任务佣金:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control" id="email" name="row[price]" value="{$row['price']}"  />
        </div>
    </div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">任务到期时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker"
            data-date-format="YYYY-MM-DD HH:mm:ss"
            data-use-current="true"
            type="text"
            name="row[end_time]"
            value="{$row['end_time']}"
            placeholder="请选择时间">
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">相关话题:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control " rows="5" name="row[topic]" placeholder="多个话题用逗号隔开,如果不填则默认话题为:余享,余享APP,闲置等" cols="50">{$row['topic']}</textarea>
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">任务图片:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatars" data-rule="" class="form-control" size="50" name="row[imgs]" type="text" value="{$row['imgs']}"  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatars" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatars"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatars" class="btn btn-primary fachoose" data-input-id="c-avatars" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatars"></span>
                </div>
                
                <ul class="row list-inline plupload-preview" id="p-avatars" style="width: 100%;"></ul>
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
